package cn.stylefeng.guns.cloud.workflow.core.menus;

import cn.stylefeng.guns.cloud.libs.scanner.stereotype.ApiResource;
import cn.stylefeng.guns.cloud.model.web.response.ResponseData;
import org.springframework.web.bind.annotation.RestController;

/**
 * 工作流相关菜单
 *
 * @author fengshuonan
 * @Date 2019年12月22日22:33:29
 */
@RestController
@ApiResource(name = "工作流相关菜单", path = "/workflowMenus")
public class WorkflowMenusController {

    @ApiResource(name = "工作流程", path = "/workflow", menuFlag = true)
    public ResponseData workflow() {
        return ResponseData.success();
    }

    @ApiResource(name = "模型管理", path = "/modeManager", menuFlag = true)
    public ResponseData modeManager() {
        return ResponseData.success();
    }

    @ApiResource(name = "流程管理", path = "/flowManager", menuFlag = true)
    public ResponseData flowManager() {
        return ResponseData.success();
    }

    @ApiResource(name = "运行中流程", path = "/runningFlow", menuFlag = true)
    public ResponseData runningFlow() {
        return ResponseData.success();
    }

    @ApiResource(name = "历史流程", path = "/historyFlow", menuFlag = true)
    public ResponseData historyFlow() {
        return ResponseData.success();
    }


    @ApiResource(name = "任务管理", path = "/tasks", menuFlag = true)
    public ResponseData tasks() {
        return ResponseData.success();
    }

    @ApiResource(name = "待办任务", path = "/waitings", menuFlag = true)
    public ResponseData waitings() {
        return ResponseData.success();
    }

    @ApiResource(name = "已办任务", path = "/alreadys", menuFlag = true)
    public ResponseData alreadys() {
        return ResponseData.success();
    }


    @ApiResource(name = "申请审批", path = "/applyFor", menuFlag = true)
    public ResponseData applyFor() {
        return ResponseData.success();
    }

    @ApiResource(name = "请假审批", path = "/leave", menuFlag = true)
    public ResponseData leave() {
        return ResponseData.success();
    }

}
